package com.ityedao.继承;

public class Teacher extends People{
    private String skill;

    @Override
    public String toString() {
        return "Teacher{" +
                "skill='" + skill + '\'' +
                '}';
    }

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }

    public void printInfo(){
        System.out.println(getName() + "具备的技能：" + skill);
    }
}
